<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var fruitPrice = {
            apple: 10,
            pear: 30,
            peach: 20,
            banana: 5,
            strawberry: 100
        };
        // sortPrices(fruitPrice); should output ['strawberry', 'pear', 'peach', 'apple', 'banana']
        // write your code here...
        function sortPrices(fruitPrice){
            let keysSorted = Object.keys(fruitPrice).sort(function(a,b){return fruitPrice[b]-fruitPrice[a]})   //排序健名
            Array(4)
            return keysSorted
        }
        console.log(sortPrices(fruitPrice))
    </script>
</head>
<body>

</body>
</html>